package ffmvc.model;

import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.ResultSetExtractor;

public class ManagerExtractor implements ResultSetExtractor<Manager> {

	public Manager extractData(ResultSet rs) throws SQLException {
		Manager person = new Manager();
		person.setId(rs.getString(1));
		person.setTeamName(rs.getString(2));
		return person;
	}
}